﻿<Window x:Class="Nox.Amuse.View.UpdateInformationDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="UpdateInformationDialog"
        mc:Ignorable="d"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        SizeToContent="Height"
        Width="400"
        ShowInTaskbar="False"
        TaskbarItemInfo="{Binding TaskBarInfo}"
        RenderOptions.BitmapScalingMode="HighQuality">
    <Grid Margin="11">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border Grid.ColumnSpan="4"
                Margin="-11,-11,-11,0">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1"
                                     StartPoint="0.5,0"
                                     Opacity="0.5">
                    <GradientStop Offset="0"
                                  Color="#FF0E74FF" />
                    <GradientStop Color="White"
                                  Offset="0.4" />
                </LinearGradientBrush>
            </Border.Background>
        </Border>
        <StackPanel Grid.ColumnSpan="2"
                    Orientation="Horizontal">
            <Image Height="48"
                   Margin="0,0,7,0"
                   Source="/Amuse;component/Images/update_circle_256.png" />
            <TextBlock HorizontalAlignment="Left"
                       Text="An update for Amuse is avalible"
                       VerticalAlignment="Center"
                       Foreground="DodgerBlue"
                       FontSize="18" />
        </StackPanel>
        <TextBlock Grid.Row="1"
                   Text="New Version:"
                   HorizontalAlignment="Right"
                   Margin="0,0,5,7" />
        <TextBlock Grid.Row="2"
                   Text="Download Size:"
                   HorizontalAlignment="Right"
                   Margin="0,0,5,7" />
        <TextBlock Grid.Row="3"
                   Text="System Update Needed:"
                   HorizontalAlignment="Right"
                   Margin="0,0,5,7" />
        <TextBlock Grid.Row="4"
                   Text="Update Details:"
                   HorizontalAlignment="Right"
                   Margin="0,0,5,11" />
        <TextBlock Grid.Row="1"
                   Grid.Column="1"
                   Text="{Binding NewVersion,FallbackValue=0.0.0.0000}"
                   HorizontalAlignment="Left"
                   Margin="0,0,0,7" />
        <TextBlock Grid.Row="2"
                   Grid.Column="1"
                   Text="{Binding Size,FallbackValue=?MB}"
                   HorizontalAlignment="Left"
                   Margin="0,0,0,7" />
        <TextBlock Grid.Row="3"
                   Grid.Column="1"
                   Text="{Binding FrameworkUpdateMessage,FallbackValue=Maybe}"
                   HorizontalAlignment="Left"
                   Margin="0,0,0,7" />
        <TextBlock Grid.Row="4"
                   Grid.Column="1"
                   Text="{Binding Details,FallbackValue='Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test '}"
                   TextWrapping="Wrap"
                   HorizontalAlignment="Left"
                   Margin="0,0,0,11" />
        <Border Grid.Row="5"
                Grid.ColumnSpan="2"
                Margin="-11,0,-11,-11">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1"
                                     StartPoint="0.5,0"
                                     Opacity="0.5">
                    <GradientStop Color="White"
                                  Offset="0.2" />
                    <GradientStop Color="{StaticResource {x:Static SystemColors.ControlDarkColorKey}}"
                                  Offset="1" />
                </LinearGradientBrush>
            </Border.Background>
        </Border>
        <StackPanel Orientation="Horizontal"
                    Grid.Column="1"
                    Grid.Row="5"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Bottom">
            <Button Content="_Download Now"
                    Padding="7,0"
                    IsDefault="True"
                    Command="{Binding CommitCommand}"
                    Margin="0,0,7,0" />
            <Button Content="Download _Later"
                    Padding="7,0"
                    IsCancel="True" />
        </StackPanel>
    </Grid>
</Window>
